package com.srit.recipes.entity;

import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.LastModifiedDate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Table
@Entity
@Getter
@Setter
public class ScPriceInfo {

    @Id
    private String scName;

    @Column(columnDefinition = "float(5,2) comment '食材价格 每 500g价格'")
    private double price;

    @LastModifiedDate
    @Column(columnDefinition = " datetime comment '更新时间'")
    protected Date updateTime;

}
